package com.shmn.gongjiajumain.service.impl;

import com.shmn.gongjiajumain.dao.WorkcellDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shmn.common.utils.PageUtils;
import com.shmn.common.utils.Query;

import com.shmn.gongjiajumain.dao.JigFamilyDao;
import com.shmn.gongjiajumain.entity.JigFamilyEntity;
import com.shmn.gongjiajumain.service.JigFamilyService;


@Service("jigFamilyService")
public class JigFamilyServiceImpl extends ServiceImpl<JigFamilyDao, JigFamilyEntity> implements JigFamilyService {

    @Autowired
    private JigFamilyDao jigFamilyDao;
    @Override
    public List<Integer> getIdByFam(String s) {
        return jigFamilyDao.getIdByFam(s);
    }

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<JigFamilyEntity> page = this.page(
                new Query<JigFamilyEntity>().getPage(params),
                new QueryWrapper<JigFamilyEntity>()
        );

        return new PageUtils(page);
    }

}